package com.infra.micro.id.domain.service;

import com.infra.common.resp.PageEx;
import com.infra.common.resp.Response;
import com.infra.micro.id.domain.entity.IdSegmentPO;
import com.infra.micro.id.model.req.QueryIdSegmentByCondReq;

import java.util.Set;

public interface IdSegmentService {

    Long getId(Integer appId, String secretKey);

    Set<Long> getIds(Integer appId, int step, String secretKey);

    Response<PageEx<IdSegmentPO, QueryIdSegmentByCondReq>> list(QueryIdSegmentByCondReq req);

}
